
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;



public class BoardAndMenuPanel extends JPanel
{
	
	
	private GameBoardPanel gbp;
	private SideMenuPanel sidePanel;
	
	private LayeredGameBoardPanel lgbp;
		
	public BoardAndMenuPanel()
	{
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

		setBackground(new Color(200,222,186));
		//setBackground(Color.black);
		//gbp = new GameBoardPanel();
		lgbp = new LayeredGameBoardPanel();
		
		sidePanel = new SideMenuPanel();
		
		//lgbp.setOpaque(false);
		
		//JLayeredPane jlp = new JLayeredPane();
		//jlp.setOpaque(false);
		//jlp.add(gbp, JLayeredPane.POPUP_LAYER);
		//jlp.setSize(695, 695);
		
		add(lgbp);
		//add(gbp);
		add(Box.createRigidArea(new Dimension(1,0)));
		add(sidePanel);		
		
	} // end constructor
	
	// returns a GameBoardPanel so the PlayMonopoly class can have access to it
	public LayeredGameBoardPanel getLGBP()
	{
		return lgbp;
	}
	// returns a SideMenuPanel so the PlayMonopoly class can have access to it
	public SideMenuPanel getSMP()
	{
		return sidePanel;
	}
	

}
